package cn.gobang.dao;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.orm.hibernate4.HibernateTemplate;
import org.springframework.stereotype.Repository;

import cn.gobang.bean.User;

@Repository("userDao")
public class UserDao {

	
    @Resource
    private HibernateTemplate template;
    
    public List findUserById(String name,String password){
        return template.find("from User where name=? and password=?",name,password);
    }
}
